"""
Tests for the track application.
"""

from track.itinerary import _advancement

def testAdvancement():
  """
  This method tests track.itinerary._advancement
  
  >>> _advancement(1.0, 0.0, 0.0, 0.0, 0.0, 1.0)
  0.0
  >>> _advancement(0.0, 1.0, 0.0, 0.0, 1.0, 0.0)
  0.0
  >>> _advancement(1.0, 1.0, 0.0, 0.0, 1.0, 0.0)
  1.0
  >>> _advancement(1.0, 1.0, 0.0, 0.0, 1.0, 1.0)
  1.0
  >>> _advancement(0.0, 0.5, 0.0, 0.0, 0.0, 1.0)
  0.5
  >>> (_advancement(0.8, 0.8, 0.0, 0.0, 1.0, 1.0) - 0.8) < 1e-7
  True
  """
  pass
